package com.charles.seckillComponentCommon.constants;

/**
 * @author Charles-H
 * 
 * 缓存常量
 */
public class CacheConstants {

    /**
     * 缓存有效期:1440分钟
     */
    public final static long EXPIRATION = 1440;

    /**
     * 缓存刷新时间:120分钟
     */
    public final static long REFRESH_TIME = 120;

    /**
     * 缓存令牌
     */
    public final static String CACHE_TOKEN = "login_token:";


    /**
     * 验证码缓存令牌
     */
    public final static String CAPTCHA_TOKEN = "captcha_token:";

    /**
     * 产品前缀
     */
    public final static String GOOD_ID = "good_id:";

    /**
     * 订单前缀
     */
    public final static String ORDER_ID = "order_id:";

    /**
     * 存放订单id
     */
    public final static String STORE_ORDER_ID = "store_order_id:";

    /**
     * 存放支付密码错误次数
     */
    public final static String PAY_PASSWORD_WRONG_ID = "pay_password_wrong_id:";

    /**
     * 产品秒杀生成令牌
     */
    public final static String SECKILL_GENERATE_TOKEN = "seckill_generate_token:";

    /**
     * 产品秒杀 API 请求（包含令牌生成）
     */
    public final static String SECKILL_API_REQ = "seckill_api_rea:";

}
